import http from "../utils/http";
const plantAPI = {
  // 商户账户信息查询
  getaccountAPI() {
    return http.get("/film/platform/account");
  },
  // 影院列表
  getcinemaAPI(cityId) {
    return http.get("/film/platform/cinema/list/" + cityId);
  },
  // 地区列表
  getregionAPI(cityId) {
    return http.get("/film/platform/region/list/" + cityId);
  },
  // 城市列表
  getcityAPI() {
    return http.get("/film/platform/city/list");
  },
  // 影院排期列表
  getshowAPI(cinemaId) {
    return http.get("/film/platform/show/list/" + cinemaId);
  },
  // 热门影片列表
  gethotAPI(params) {
    return http.get("/film/platform/hot/list", params);
  },
  // 待上映影片列表
  getsoonAPI(params) {
    return http.get("/film/platform/soon/list", params);
  },
  // 出票
  getconfirmAPI(params) {
    return http.get("/film/orderForm/order/confirm", params);
  },
  // 下单锁座
  getlockAPI(params) {
    return http.get("/film/orderForm/order/lock", params);
  },
  // 释放锁座(取消订单)
  getunlockAPI(orderNo) {
    return http.get("/film/orderForm/order/unlock/" + orderNo);
  },
  // 查询订单
  getunorderAPI(orderNo) {
    return http.get("/film/orderForm/order/" + orderNo);
  },
  // 座位
  getseatAPI(params) {
    return http.get("/film/orderForm/seat/list", params);
  },

  // 获取签名
  wxSign(params) {
    return http.get("/wxSign/wxSign", params);
  },

  // 获取opid
  wxgetOpenid(params) {
    return http.get("/wxSign/getOpenid", params);
  },
  // 电影付款预支付
  prepayment(params) {
    return http.put("/film/orderPurchase/prepayment", params);
  },
  // 查询卡券列表
  cardList(params) {
    return http.get("/film/orderPurchase/cardList", params);
  },
  // 根据订单查询返回微信金额
  getAdditionalAmount(params) {
    return http.post("/film/orderPurchase/getAdditionalAmount", params);
  },
  // 直接出票
  prepayconfirm(params) {
    return http.post("/film/orderForm/order/confirm", params);
  },
  // 查询订单
  orderList(params) {
    return http.get("/center/orderList", params);
  },
  // 个人中心查询卡券列表
  centerCardList(params) {
    return http.get("/center/cardList", params);
  },

  // 兑换列表
  conversionList(params) {
    return http.get("/haiwei/product/list", params);
  },
  // 查询详情
  conversionDetail(productNo) {
    return http.get("/haiwei/product/detail/" + productNo);
  },
  // 根据订单查询返回微信金额
  getAdditionalAmounts(params) {
    return http.post("/haiwei/getAdditionalAmount", params);
  },
  // 创建直充订单
  conversionOrder(params) {
    return http.post("/haiwei/order", params);
  },
  // .福利付款预支付
  prepaymentShop(params) {
    return http.put("/haiwei/prepayment", params);
  },
  // 创建话费订单
  telOrder(params) {
    return http.post("/haiwei/order/tel", params);
  },
  // 查询直充订单详情
  telDetail(orderNo) {
    return http.get("/haiwei/order/detail/" + orderNo);
  },
  // 余额查询
  balance() {
    return http.get("/haiwei/balance");
  },
  // 直充订单状态通知（回调）
  callbacks(params) {
    return http.post("/haiwei/callback", params);
  },

  // 获取配置维护详细信息
  configurationInfo(params) {
    return http.get("/app/configuration/getInfo", params);
  },

  // 绑定新卡
  bindCard(params) {
    return http.post("/center/bindCard", params);
  },
  // 获取直充图片地址
  directProductNo(productNo) {
    return http.get("/haiwei/direct/" + productNo);
  },
    // 获取直充图片地址1
  directofficialPrice(productNo) {
    return http.get("/haiwei/officialPrice/" + productNo);
  },
  //查询福利兑换订单信息列表
  convertList(params) {
    return http.get("/center/convertList", params);
  },
  // 根据用户id获取详细信息
  getUsers() {
    return http.get("/center/getUser");
  },

  // (取消订单)
  ordernlockAPI(orderNo) {
    return http.get("/haiwei/order/unlock/" + orderNo);
  },

  // 查询卡使用记录列表
  cardUsageRecordList(params) {
    return http.get("/center/cardUsageRecordList",params);
  },
  //根据订单号电影订单
  centerOrder(orderNo) {
    return http.get("/center/order/" + orderNo);
  },
  //根据订单号直充订单详情
  centerOrderdetail(orderNo) {
    return http.get("/center/order/detail/" + orderNo);
  },

  //获取广告位
  advertlist() {
    return http.get("/film/advert/list");
  },
    //获取轮播图
  bannerlist() {
    return http.get("/film/slideshow/list");
  },

  
  //字典
  dictTypes(dictType) {
    return http.get(`/system/dict/data/list?dictType=${dictType}`);
  },

};
export default plantAPI;
